<html>
<head>
<title> Installing SSL Certificates for Courier-IMAP Mail Server </title>
<meta name="Keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
<script src="locate.js"></script>
<link href="prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify.js"></script>
</head>
<script src="highlight.js"></script>
<body bgcolor="#FFFFFF" text="#000000" link="#0000A0" alink="#008000" vlink="#FF0000" onLoad="FindCorrectTOCPage(); prettyPrint()">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td>
<p class="pagenavigation"><a href="52759.htm" target="_self"><img src="38976.gif" alt="Previous page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"> Previous page</a></p></td>
<td>
<p class="pagenavigation"><a href="toc41518238.htm" target="TOC"><img src="38970.gif" alt="Locate page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"> Locate page</a></p></td>
<td>
<p class="pagenavigation"><a href="toc41518238.htm" target="TOC"><a class="" title="" href="javascript:print();" target="_self"><img src="39072.gif" alt="Print this page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"></a></a></p></td>
</tr>
</table>
<h3 class="heading3">Installing SSL Certificates for Courier-IMAP Mail Server</h3>
<p class="bodytext"> </p>
<p class="bodytext">To install a custom SSL certificate for the Courier-IMAP (IMAP/POP3) mail server on a Plesk server, follow these steps:</p>
<p class="bodytext"> </p>
<ol class="listnumber"><li class="listnumber">Log in to a Plesk server through SSH as a root user.</li><li class="listnumber">Download one or more SSL certificate files that you want to install.<p class="listnote"><strong class="buttons">Note</strong>: IMAP and POP3 each require separate certificate files, but both files can contain same certificate.</p>
</li><li class="listnumber">Make a backup copy of the existing default SSL certificate for the Courier-IMAP mail server. <p class="listcontinue">For example for RedHat or Fedora operating systems, you need to back up the following default SSL certificate files:</p>
<ul class="listbullet2"><li class="listbullet2"><code class="monospace">/usr/share/courier-imap/imapd.pem</code> - the certificate enables secure data transfers through IMAP protocol.</li><li class="listbullet2"><code class="monospace">/usr/share/courier-imap/pop3d.pem</code> - the certificate enables secure data transfers through POP3 protocol.<p class="listnote"><strong class="buttons">Note</strong>: For other operating systems, the default certificate file locations may be different.</p>
</li></ul></li><li class="listnumber">Open a default certificate file by using your favorite text editor and replace the contents of the file, with the content of the SSL certificate file that you want to install.<p class="listcontinue"></p>
<p class="listcontinue">For example, the content to be copied from a custom SSL certificate and pasted in lieu of a default certificate file body should look like this:</p>
<p class="listcontinue"><code class="monospace"> </code></p>
<p class="listcontinue"><code class="monospace">-----BEGIN CERTIFICATE-----</code></p>
<p class="listcontinue"><code class="monospace">MIIB8TCCAZsCBEUpHKkwDQYJKoZIhvcNAQEEBQAwgYExCzAJBgNVBAYTAlJPMQww</code></p>
<p class="listcontinue"><code class="monospace">............</code></p>
<p class="listcontinue"><code class="monospace">............</code></p>
<p class="listcontinue"><code class="monospace">eNpAIeF34UctLcHkZJGIK6b9Gktm</code></p>
<p class="listcontinue"><code class="monospace">-----END CERTIFICATE-----</code></p>
<p class="listcontinue"><code class="monospace"> </code></p>
<p class="listcontinue"><code class="monospace">-----BEGIN RSA PRIVATE KEY-----</code></p>
<p class="listcontinue"><code class="monospace">MIICXgIBAAKBgQDv6i/mxtS2B2PjShArtOAmdRoEcCWa/LH1GcrbW14zdbmIqrxb</code></p>
<p class="listcontinue"><code class="monospace">..........</code></p>
<p class="listcontinue"><code class="monospace">..........</code></p>
<p class="listcontinue"><code class="monospace">faXRHcG37TkvglUZ3wgy6eKuyrDi5gkwV8WAuaoNct5j5w==</code></p>
<p class="listcontinue"><code class="monospace">-----END RSA PRIVATE KEY-----</code></p>
<p class="listcontinue"><code class="monospace"> </code></p>
</li><li class="listnumber">Save and close the file.</li><li class="listnumber">To finish the certificate installation, restart Courier-IMAP.</li></ol><p class="bodytext"> </p>


</body>
<script>highlightTOC()</script>
</html>

